package com.wxw.BaseLibrary.http.soap;

import org.apache.http.Header;

import java.io.File;
import java.util.Map;

/**
 * Created by david on 2016/5/11.
 */
public interface Request<T> {
    String getAccept();

    String getContentType();

    void addHeader(String key, String header);

    Map<String, String> getHeaders();

    String url();

    void add(String key, String value);

    void add(String key, File file);

    void add(String key, byte[] data);

    Map<String, Object> getParams();

    void setTag(Object tag);

    Object getTag();

    T parseResponse(String url, byte[] responseBody);
}
